﻿@{
    int cartCount = 0;
    if (Session["Cart"] != null)
    {
        cartCount = ((List<Pku.BookStore.Web.Models.CartModels>)Session["Cart"]).Count;
    }    
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <title>图书商城 - 图书频道首页</title>
    <meta name="description" content="图书商城图书频道提供丰富的图书产品，种类包括小说、文学、传记、艺术、少儿、经济、管理、生活等图书的网上销售，为您提供最佳的购书体验。网购上图书，省钱又放心！ ">
    <meta name="Keywords" content="图书,网上购书,买书,折扣图书,网上买书,网上图书商城,小说,经济,管理,畅销书,新书,打折">
    <link rel="Stylesheet" type="text/css" href="/Content/base.css" media="all">
    <link rel="stylesheet" type="text/css" href="/Content/book.base.css" media="all">
    <script type="text/javascript" src="/Scripts/jquery-1.2.6.pack.js"></script>
</head>
<body id="book">
    <script type="text/javascript" src="/Scripts/base-2011.js" charset="gb2312"></script>
    <div id="shortcut">
        <div class="w">
            <ul class="fl lh">
                <li class="fore1 ld"><b></b><a href="javascript:addToFavorite()">收藏本站</a></li>
                <li class="fore2"><a href="http://www.pku.edu.cn/" target="_blank">北京大学</a></li>
                <li class="fore3"><a href="http://www.pkudl.cn/" target="_blank">北大网院</a></li>
            </ul>
            <ul class="fr lh">
                @{
                    if (Session["UserID"] != null)
                    {
                    <li class="fore1 ld" id="loginbar">您好，@Session["UserName"]！<span><a href="/User/LogOn?Act=LogOut">[退出]</a></span></li>
                    }
                    else
                    {
                    <li class="fore1 ld" id="loginbar">您好，欢迎来到图书商城！<span><a href="/User/LogOn">[登录]</a>
                        <a href="/User/Reg" class="link-regist">[免费注册]</a></span></li>
                    }
                }
                <li class="fore2"><a href="/User/OrderList">我的订单</a></li>
                <li class="fore2"><a href="#">帮助手册</a></li>
            </ul>
            <span class="clr"></span>
        </div>
    </div>
    <!--shortcut end-->
    <div id="o-header">
        <div class="w" id="header">
            <div id="logo" class="ld">
                <a href="/">
                    <img src="/images/logo.png" alt="图书商城"></a></div>
            <!--logo end-->
            <div id="search">
                <div class="i-search ld">
                    <b></b><s></s>
                    <ul id="shelper" class="hide">
                    </ul>
                    <div class="form">
                        <input type="text" class="text" accesskey="s" id="key" autocomplete="off" onkeydown="javascript:if(event.keyCode==13) search(&#39;key&#39;);">
                        <input type="button" value="搜索" class="button" onclick="search(&#39;key&#39;);return false;">
                    </div>
                </div>
                <div id="advancesearch">
                    <a href="#" target="_blank">高级搜索</a></div>
            </div>
            <!--search end-->
            <div id="myxxx">
                <dl>
                    <dt class="ld"><s></s>
                        <img src="/images/blank.gif" width="24" height="24" alt="头像"><a href="/User/FavoritesList">我的图书</a><b></b></dt>
                    <dd>
                        <div class="loading-style1">
                            <b></b>加载中，请稍候...</div>
                    </dd>
                </dl>
            </div>
            <!--myxxx end-->
            <div id="settleup">
                <dl>
                    <dt class="ld"><s class="shopping"><span id="shopping-amount">@cartCount</span></s>
                        <a href="/Cart">去购物车结算</a> <b></b></dt>
                    <dd>
                        <div class="prompt">
                            <div class="loading-style1">
                                <b></b>加载中，请稍候...</div>
                        </div>
                    </dd>
                </dl>
            </div>
            <!--settleup end-->
        </div>
        <!--header end-->
        <div class="w">
            <div id="nav">
                <ul id="navitems">
                    <li id="nav-tuan"><a href="/">首页</a></li>
                    <li class="fore2" id="nav-mall"><a href="/Product/Special">特价书</a></li>
                    <li class="fore3" id="nav-minitiao"><a href="/Product/Top50">Top50</a></li>
                    <li class="fore4" id="nav-tuan"><a href="/Product/NewBook">最新图书</a></li>
                    <li class="fore5" id="nav-auction"><a href="/User/FavoritesList">我的收藏</a></li>
                    <li class="fore6" id="nav-club"><a href="/User/OrderList">我的订单</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!-- header end -->
    @RenderBody()
    <div class="w">
        <hr />
    </div>
    <div class="w">
        <div id="footer">
            <div class="links">
                <a href="#" target="_blank">关于我们</a>|<a href="#" target="_blank">联系我们</a>|<a href="#"
                    target="_blank">人才招聘</a></div>
            <div class="copyright">
                Copyright&#169;2012&nbsp;&nbsp;图书商城&nbsp;版权所有</div>
        </div>
    </div>
    <!-- footer end -->
</body>
</html>
